package com.tulele.vtool.handler;

import com.tulele.vtool.model.BPosterDetails;
import com.tulele.vtool.service.BPosterDetailsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 海报信息内容详情表(BPosterDetails)表控制层
 *
 * @author makejava
 * @since 2020-11-27
 */
@Slf4j
@RestController
@RequestMapping("bPosterDetails")
public class BPosterDetailsHandler {
    /**
     * 服务对象
     */
    @Autowired
    private BPosterDetailsService bPosterDetailsService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public BPosterDetails selectOne(Integer id) {
        return this.bPosterDetailsService.queryById(id);
    }

}